package com.rabbit.eap.system.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @projectName: eap
 * @packageName: com.rabbit.eap.system.dto
 * @className: ModifyPwdDTO
 * @author： rabbit
 * @version： 1.0
 * @since： 2020/7/26 20:43
 * <p>Description: ModifyPwdDTO </p>

 */
@Data
@Accessors(chain = true)
@ApiModel(value = "修改密码参数对象")
public class ModifyPwdDTO {

    /**
     * 参数主键
     */
    @NotNull(message = "用户编号不能为空")
    @ApiModelProperty("参数主键")
    private Long id;

    @ApiModelProperty("新密码")
    @NotEmpty(message = "新密码不能为空")
    private String newPassword;
}
